package com.info.zhiduoduo.repository.mapper.maker;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.info.zhiduoduo.repository.entity.maker.CustodianModificationRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface CustodianModificationRecordMapper extends BaseMapper<CustodianModificationRecord> {

    @Select("SELECT * FROM `zdd_custodian_modification_record` cmr  " +
            "WHERE cmr.user_id = #{userId} " +
            "ORDER BY cmr.createtime DESC")
    List<CustodianModificationRecord> getRecord(@Param("userId") Integer userId);
}
